package com.whfc.wxmp.api.sys.service.impl;

import com.whfc.fuum.dto.SysDictDTO;
import com.whfc.fuum.service.SysDictService;
import com.whfc.wxmp.api.sys.service.WxDictDataService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

/**
 * @author sun_guodong
 * @description
 * @date 2019-11-14
 */
@Service
public class WxDictDataServiceImpl implements WxDictDataService {

    @DubboReference(interfaceClass = SysDictService.class, version = "1.0.0")
    private SysDictService sysDictService;

    /**
     * 获取字典数据
     *
     * @param code
     * @return
     */
    @Override
    public SysDictDTO getDictDataByTypeCode(String code) {
        SysDictDTO result = sysDictService.getDictDataByTypeCode(code);
        return result;
    }
}
